package com.ruoyi.project.search.viewFactoryStorageAge.service.impl;

import java.util.List;

import com.ruoyi.project.search.viewFactoryStorageAge.domain.ViewFactoryStorageAge;
import com.ruoyi.project.search.viewFactoryStorageAge.mapper.ViewFactoryStorageAgeMapper;
import com.ruoyi.project.search.viewFactoryStorageAge.service.IViewFactoryStorageAgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;

/**
 * 工厂库龄Service业务层处理
 * 
 * @author qxq
 * @date 2024-04-23
 */
@Service
public class ViewFactoryStorageAgeServiceImpl implements IViewFactoryStorageAgeService
{
    @Autowired
    private ViewFactoryStorageAgeMapper viewFactoryStorageAgeMapper;

    /**
     * 查询工厂库龄
     * 
     * @param inClassId 工厂库龄主键
     * @return 工厂库龄
     */
    @Override
    public ViewFactoryStorageAge selectViewFactoryStorageAgeByInClassId(String inClassId)
    {
        return viewFactoryStorageAgeMapper.selectViewFactoryStorageAgeByInClassId(inClassId);
    }

    /**
     * 查询工厂库龄列表
     * 
     * @param viewFactoryStorageAge 工厂库龄
     * @return 工厂库龄
     */
    @Override
    public List<ViewFactoryStorageAge> selectViewFactoryStorageAgeList(ViewFactoryStorageAge viewFactoryStorageAge)
    {
        return viewFactoryStorageAgeMapper.selectViewFactoryStorageAgeList(viewFactoryStorageAge);
    }

    /**
     * 新增工厂库龄
     * 
     * @param viewFactoryStorageAge 工厂库龄
     * @return 结果
     */
    @Override
    public int insertViewFactoryStorageAge(ViewFactoryStorageAge viewFactoryStorageAge)
    {
        return viewFactoryStorageAgeMapper.insertViewFactoryStorageAge(viewFactoryStorageAge);
    }

    /**
     * 修改工厂库龄
     * 
     * @param viewFactoryStorageAge 工厂库龄
     * @return 结果
     */
    @Override
    public int updateViewFactoryStorageAge(ViewFactoryStorageAge viewFactoryStorageAge)
    {
        return viewFactoryStorageAgeMapper.updateViewFactoryStorageAge(viewFactoryStorageAge);
    }

    /**
     * 批量删除工厂库龄
     * 
     * @param inClassIds 需要删除的工厂库龄主键
     * @return 结果
     */
    @Override
    public int deleteViewFactoryStorageAgeByInClassIds(String inClassIds)
    {
        return viewFactoryStorageAgeMapper.deleteViewFactoryStorageAgeByInClassIds(Convert.toStrArray(inClassIds));
    }

    /**
     * 删除工厂库龄信息
     * 
     * @param inClassId 工厂库龄主键
     * @return 结果
     */
    @Override
    public int deleteViewFactoryStorageAgeByInClassId(String inClassId)
    {
        return viewFactoryStorageAgeMapper.deleteViewFactoryStorageAgeByInClassId(inClassId);
    }
}
